<?php
$option= array(
            'inputDefaults' => array(
                'div' => array(
                	'class' => 'form-group'
                ),
                'label' => array(
                	'class' => ' col-md-push'
                ),
                'between' => '<div class="col-lg-8 right">',
                'seperator' => '</div>',
                'after' => '</div>',
                'class' => 'form-control',
            ),
            'class' => 'form-horizontal form-stacked',
            'role' => 'form',
        );
?>
<div class="row">
  	<div class="page-header">
		  <h1>Editar Cliente</h1>
		</div>
  	<div class="col-sm-12 col-md-6 col-md-offset-12">
		<?php echo $this->Session->flash(); ?>
	</div>

	<div class="col-sm-12 col-md-12">
		<div id="signup" class="lock-screen">
			<div class="title icon-space"><i class="glyphicon glyphicon-plus"></i>Editar Cliente</div>
				<?php echo $this->Form->create('Clients',$option); ?>
					<fieldset>
					<?php echo $this->Form->input('dni' ,array( 'label' => array( 'text' => __('DNI:'),'class' => 'col-lg-2 control-label' )))?>
						<?php echo $this->Form->input('first_name',array( 'label' => array( 'text' => __('Nombre:'),'class' => 'col-lg-2 control-label' )));?>
						<?php echo $this->Form->input('last_name',array( 'label' => array( 'text' => __('Apellido:'),'class' => 'col-lg-2 control-label' )));?>
						<?php echo $this->Form->input('email',array( 'label' => array( 'text' => __('Email:'),'class' => 'col-lg-2 control-label' )));?>
						<?php echo $this->Form->input('profession',array( 'label' => array( 'text' => __('Profesion:'),'class' => 'col-lg-2 control-label' )));?>
						<!-- <input class="form-control" type="text" data-mask="99/99/9999" placeholder=""> -->
						<?php echo $this->Form->input('birthday',array( 'label' => array( 'text' => __('Fecha de Nacimiento:'),'class' => 'col-lg-2 control-label','data-mask'=>"99/99/9999",'placeholder'=>'dd/mm/aaaa' )));?>
						<?php echo $this->Form->input('address',array( 'label' => array( 'text' => __('Domicilio:'),'class' => 'col-lg-2 control-label' )));?>
						<?php echo $this->Form->input('phone_home',array( 'label' => array( 'text' => __('Teléfono:'),'class' => 'col-lg-2 control-label' )));?>		
						<?php echo $this->Form->input('phone_cell',array( 'label' => array( 'text' => __('Celular:'),'class' => 'col-lg-2 control-label' )));?>	
						<?php echo $this->Form->input('observation',array( 'type'=>'textarea','label' => array( 'rows' => '5', 'cols' => '5','text' => __('Observación:'),'class' => 'col-lg-2 control-label' )));?>	
						<?php echo $this->Form->input('find_us',array( 'type'=>'textarea','label' => array( 'rows' => '5', 'cols' => '5','text' => __('¿ Como nos Conocio ?:'),'class' => 'col-lg-2 control-label' )));?>					
						<?php echo $this->Form->input('discount',array( 'label' => array( 'text' => __('Descuento:'),'class' => 'col-lg-2 control-label' ),'placeholder'=>'Descuento % '));?>
								
				<div class="form-group">
				    <div class="col-sm-offset-2 col-sm-10">
				      <button type="submit" class="btn btn-primary">Guardar</button>
				     <?php echo $this->Html->link(__('Cancelar', true), array('controller' => 'clients', 'action' => 'index' ),array('class'=>'btn btn-primary')); ?> 	
				    </div>
				  </div>
				</fieldset>	
			<?php echo $this->Form->end(); ?>			
		</div>						
	</div>
	<!-- login container End here -->
</div>

<script type="text/javascript">
	
	$(function(){
		$('#ClientsBirthday').datepicker( {dateFormat: 'dd-mm-yy' });
		
	});
</script>